package com.dirtylily.myblog.dao;


import com.dirtylily.myblog.pojo.Tag;
import com.dirtylily.myblog.pojo.Type;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface TagDao {
//    查
    Tag getTag  (Long id);

    List<Tag> getAllTag();
//    改
    int  updateTag(Tag tag);


    //增
    int saveTag(Tag tag);


//    删
    int delTag(Long id);

    Tag getTagByName(String name);

}
